package com.chinasofti.myjdk8date.mydate;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

public class JKD8DateDemo5 {
    public static void main(String[] args) {
        String s1 = "2023-04-03 13:37:00";
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy年MM月dd HH:mm:ss");
        LocalDateTime parse =  LocalDateTime.parse(s1,dateTimeFormatter);
        System.out.println(parse);
//        LocalDateTime localDateTime = LocalDateTime.of(2023,04,3,13,37,00);
//        System.out.println(localDateTime);
//        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
//        String s = localDateTime.format(dateTimeFormatter);
//
//        System.out.println(s);
    }


}